package com.es.easystoragesimulatedata.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 电站信息模型
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("station_info")
public class StationInfo {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @JsonProperty("stationId")
    @TableField("station_id")
    private String stationId;
    
    @JsonProperty("stationName")
    @TableField("station_name")
    private String stationName;
    
    @JsonProperty("stationType")
    @TableField("station_type")
    private String stationType;
    
    @JsonProperty("capacity")
    private String capacity;
    
    @JsonProperty("location")
    private String location;
    
    @JsonProperty("plannedGridTime")
    @TableField("planned_grid_time")
    private String plannedGridTime;
    
    @JsonProperty("status")
    private String status;
    
    @JsonProperty("description")
    private String description;
    
    @JsonProperty("longitude")
    @TableField("longitude")
    private Double longitude;
    
    @JsonProperty("latitude")
    @TableField("latitude")
    private Double latitude;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}